package com.slmxz.tms.document.service;

import com.slmxz.tms.document.model.entity.SettleCurrency;
import com.slmxz.tms.document.model.vo.SettleCurrencyVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 结算币种汇率服务类
 * @author sunyao
 * @Date 2024-11-09
 */
public interface SettleCurrencyService extends IService<SettleCurrency> {

    /**
     *结算币种汇率分页列表
     *
     * @return
     */
    IPage<SettleCurrencyVO> selectSettleCurrencyPage(IPage<SettleCurrencyVO> page, SettleCurrencyVO settleCurrency);

    /**
     * @param id 结算币种汇率ID
     * @return
     */
     SettleCurrencyVO selectSettleCurrencyDetail(Long id);

    /**
     * 新增结算币种汇率
     * @return
     */
    boolean saveSettleCurrency(SettleCurrency settleCurrency);

    /**
     * 修改结算币种汇率
     * @return
     */
    boolean updateSettleCurrency(SettleCurrency settleCurrency);

    /**
     * 删除结算币种汇率
     *
     * @param ids 结算币种汇率ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteSettleCurrencys(String ids);

    /**
   * 激活或者注销
   * @return
   */
    boolean activeOrLogout(SettleCurrencyVO settleCurrency);

}
